package wrapper;

public class IntegerDemo {
    public static void main(String[] args) {
        Integer i1 = new Integer(5);
        Integer i2 = new Integer(5);
        System.out.println(i1 == i2);
        System.out.println(i1.equals(i2));
        Integer i3 = Integer.valueOf(500);
        Integer i4 = Integer.valueOf(5);
        System.out.println(i3 == i4);
        Double d1 = Double.valueOf(3.14);
        int a = i3.intValue();
        double d = d1.doubleValue();
        int b = i4;
        Integer m = 10;
        int n = m;
        System.out.println(Integer.MAX_VALUE);
        System.out.println(Integer.MIN_VALUE);
        System.out.println(Long.MAX_VALUE);
        String s1 ="40";
        int c = Integer.parseInt(s1);
        int e = 90;
        String s = String.valueOf(e);
        double f = Double.parseDouble(s1);
        Integer a1 = 100;//Integer a1 = Integer.valueOf(100);
        Integer b1 = 200;//Integer b1 = Integer.valueOf(200);
        Integer c1 = a1+b1;//Integer c1 = Integer.valueOf(a1.intValue()+b1.intValue());
        int e1 = c1;//int e1 = c1.intValue();
    }
}